package marking.liu.constant;

public enum ResponseCodeConstant {
    CONTINUE(100, "继续，客户端应应继续其请求"),
    SWITCHPROTOCOLS(101, "切换协议"),
    OK(200, "请求成功"),
    BADREQUEST(400, "客户端请求的语法错误"),
    FORBIDDEN(403, "服务器拒绝执行此请求");


    private int code;
    private String message;
    ResponseCodeConstant(int code, String message) {
        this.code = code;
        this.message = message;
    }
//
    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
